//
//  Config.swift
//  Hdc
//
//  Created by 虞明义 on 2017/8/1.
//  Copyright © 2017年 yumingyi. All rights reserved.
//

import Foundation
import UIKit


let kScreenW = UIScreen.main.bounds.size.width
let kScreenH = UIScreen.main.bounds.size.height

func IsiPhone4()->Bool{
    if UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiom.phone{
        if kScreenH < 568.0{
            return true
        }
    }
    return false
}

func IsiPhone5()->Bool{
    if UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiom.phone{
        if kScreenH == 568.0{
            return true
        }
    }
    return false
}

func IsiPhone6()->Bool{
    if UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiom.phone{
        if kScreenH == 667.0{
            return true
        }
    }
    return false
}

func IsiPhone6P()->Bool{
    if UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiom.phone{
        if kScreenH == 736.0{
            return true
        }
    }
    return false
}
